<template>
  <div>
    <h1>{{ props.message }}</h1>
    <h1>{{ props.message }}</h1>
    <button @click="emits('onSetUp')">+1</button>
  </div>

</template>

<script setup lang="ts">

import { defineProps, defineEmits } from 'vue'

// 获取自定义属性
const props = defineProps(['message'])

// 获取自定义事件
const emits = defineEmits(['onSetUp', 'qwe'])


</script>

<style>
</style>